package com.devmindset.legoframework.usage.client.util;

/**
 * Maps and holds information for a banner.
 * 
 * @author <a href="ice.penov@devmindset.com">Ice Penov</a>
 */
public class BannerInfo {
	
	private String imageFile;
	private String url;
	private String width;
	private String height;
	
	public BannerInfo(String bannerInfo) {
		if (bannerInfo != null) {
			String[] parts = bannerInfo.split("\\@");
			if (parts.length == 4) {
				setImageFile(parts[0]);
				setUrl(parts[1]);
				setWidth(parts[2]);
				setHeight(parts[3]);
			}
		}
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getImageFile() {
		return imageFile;
	}

	public void setImageFile(String imageFile) {
		this.imageFile = imageFile;
	}

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}
		
}